package d6_reflect;
/**
 * 2024/7/11 测试Student
 */
public class Test1Class {
    public static void main(String[] args) throws ClassNotFoundException {
        Class c1=  Student.class;
        System.out.println(c1.getName());//全类名
        System.out.println(c1.getSimpleName());//简名：Student

        Class c2 = Class.forName("java\\d6_reflect\\Student.java");
        System.out.println(c1 == c2);


        Student s = new Student();
        Class c3=  s.getClass();
        System.out.println(c3==c2);
    }
}
